﻿@model Citi.GocAttributes.WebUI.Models.GocFilterModel
@Html.Partial("~/Views/PartialView/AutoCompleteLevel.cshtml",
        new Citi.GocAttributes.WebUI.Models.AutoCompleteLevelModel
        {
            HiddenIdInput = "ManagedSegmentId",
            AutoCompleteInput = "completeManagedSegment",
            LevelInput = "LevelManagedSegment",
            ControllerName = "ManagedSegment"
        })
@Html.Partial("~/Views/PartialView/AutoCompleteLevel.cshtml",
        new Citi.GocAttributes.WebUI.Models.AutoCompleteLevelModel
        {
            HiddenIdInput = "FunctionId",
            AutoCompleteInput = "completeFunction",
            LevelInput = "LevelFunction",
            ControllerName = "Function"
        })
@Html.Partial("~/Views/PartialView/AutoComplete.cshtml",
        new Citi.GocAttributes.WebUI.Models.AutoCompleteModel
        {
            HiddenIdInput = "FrsOuId",
            AutoCompleteInput = "autoCompleteFrsOu",
            ControllerName = "FrsOu"
        })
@Html.Partial("~/Views/PartialView/AutoComplete.cshtml",
        new Citi.GocAttributes.WebUI.Models.AutoCompleteModel
        {
            HiddenIdInput = "FrsBuId",
            AutoCompleteInput = "autoCompleteFrsBu",
            ControllerName = "FrsBu"
        })
@Html.Partial("~/Views/PartialView/AutoComplete.cshtml",
        new Citi.GocAttributes.WebUI.Models.AutoCompleteModel
        {
            HiddenIdInput = "CountryId",
            AutoCompleteInput = "autoCompleteCountry",
            ControllerName = "Country"
        })
@Html.Partial("~/Views/PartialView/AutoComplete.cshtml",
        new Citi.GocAttributes.WebUI.Models.AutoCompleteModel
        {
            HiddenIdInput = "RuleId",
            AutoCompleteInput = "autoCompleteRule",
            ControllerName = "Rule"
        })
@Html.Partial("~/Views/PartialView/AutoComplete.cshtml",
        new Citi.GocAttributes.WebUI.Models.AutoCompleteModel
        {
            HiddenIdInput = "TypeRuleResultId",
            AutoCompleteInput = "autoCompleteTypeRuleResult",
            ControllerName = "TypeRuleResult"
        })
@using (Ajax.BeginForm("Filter", "Goc", new AjaxOptions { UpdateTargetId = "gocsList" }, new { id = "filterForm" }))
{
    <fieldset>
        <legend>Filter</legend>
        @Html.HiddenFor(model => model.Exception)
        <div style="float: left; margin-left: 10px;">
            GOC Attributes:
            @Html.TextBoxFor(model => model.GocAttribute, new { style = "width:100px;" })
        </div>
        <div style="float: left; margin-left: 10px;">
            GOC Description:
            @Html.EditorFor(model => model.LongDescription)
        </div>
        <div style="float: left; margin-left: 10px;">
            Corp Code:
            @Html.TextBoxFor(model => model.CorpCode, new { style = "width:100px;" })
        </div>
        <div style="float: left; margin-left: 10px;">
            Expense Code:
            @Html.TextBoxFor(model => model.ExpenseCode, new { style = "width:100px;" })
        </div>
        <div style="clear: both;">
        </div>
        <div style="float: left; margin-left: 10px;">
            Manager:
            @Html.TextBoxFor(model => model.Manager, new { style = "width:80px;" })
        </div>
        <div style="float: left; margin-left: 10px;">
            FRS BU:
            <input type="text" id="autoCompleteFrsBu" />
            @Html.HiddenFor(model => model.FrsBuId)
        </div>
        <div style="float: left; margin-left: 10px;">
            FRS OU:
            <input type="text" id="autoCompleteFrsOu" />
            @Html.HiddenFor(model => model.FrsOuId)
        </div>
        <div style="float: left; margin-left: 10px;">
            LVID:
            @Html.TextBoxFor(model => model.Lvid, new { style = "width:50px;" })
        </div>
        <div style="clear: both">
        </div>
        <div style="float: left; margin-left: 10px;">
            Function Level:<input type="text" id="levelFunction" class="integer" style="width: 30px;"
                maxlength="2" />
            Name:
            <input type="text" id="completeFunction" />
            @Html.HiddenFor(model => model.FunctionId)
        </div>
        <div style="float: left; margin-left: 10px;">
            Managed Segment Level:<input type="text" id="levelManagedSegment" style="width: 30px;"
                maxlength="2" />
            Name:<input type="text" id="completeManagedSegment" />
            @Html.HiddenFor(model => model.ManagedSegmentId)
        </div>
        <div style="clear: both">
        </div>
        <div style="float: left; margin-left: 10px;">
            Country:
            <input type="text" style="width: 80px;" id="autoCompleteCountry" />
            @Html.HiddenFor(model => model.CountryId)
        </div>
        <div style="float: left; margin-left: 10px;">
            Rule:
            <input type="text" id="autoCompleteRule" />
            @Html.HiddenFor(model => model.RuleId)
        </div>
        <div style="float: left; margin-left: 10px;">
            Deck Regional :
            <input type="text" id="autoCompleteTypeRuleResult" />
            @Html.HiddenFor(model => model.TypeRuleResultId)
        </div>
        <div style="float: left; margin-left: 10px;">
            SID:
            @Html.TextBoxFor(model => model.SidCode, new { style = "width:50px;" })
        </div>
        <input type="submit" id="filter" value="   Filter   " class="btn" style="float: right; margin-right: 100px;" />
    </fieldset>
}
